import request from '@/utils/requset'

// 获取菜单列表
export const getMenuList = (): any => request({
  method: 'get',
  url: '/menu/list'
})
// 获取下拉属性菜单列表
export const getMenutreeList = (): any => request({
  method: 'get',
  url: '/menu/tree_list'
})

// 新增菜单
export const addMenu = (data: any): any => request({
  method: 'post',
  url: '/menu/create',
  data
})
// 新增菜单
export const updateMenu = (id: string, data: any): any => request({
  method: 'patch',
  url: '/menu/update' + id,
  data
})
